//
//  LTStatus.swift
//  微博08
//
//  Created by 123 on 16/3/6.
//  Copyright © 2016年 Tsr. All rights reserved.
//

import UIKit

class LTStatus: NSObject {
    // 微博创建时间
    var created_at: String?
    
    // 微博ID
    var id:	Int64 = 0
    
    // 微博信息内容
    var text: String?
    
    // 微博配图
    var pic_urls: [[String: AnyObject]]?
    
    // 微博来源
    var source: String?
    
    // 转发数
    var reposts_count: Int = 0
    
    // 评论数
    var comments_count: Int = 0
    
    // 表态数
    var attitudes_count: Int = 0
    
    init(dict: [String: AnyObject]) {
        super.init()
        
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {}
    
    // 打印:方便调试
    override var description: String {
        let keys = ["created_at", "id", "text", "pic_urls", "source", "reposts_count", "comments_count", "attitudes_count"]
        // \n: 换行
        // \t: 制表符 相当于 table键
        
        return "\n\t微博: \(dictionaryWithValuesForKeys(keys).description)"
    }

}
